package com.example.xxljob;

import cn.hutool.core.date.DateUtil;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.XxlJob;


public class DemoJobHandler extends IJobHandler {
    @Override
    @XxlJob("demoJobHandler2")
    public void execute() throws Exception {
        // 任务逻辑
        System.out.println("执行任务2:"+ DateUtil.now());
    }
}